const express = require('express')

const app = express()
const port = 8081

app.use(require('cors')())
app.use(express.json())

require('./db')(app)
var rotues = require('./routes')
app.use(rotues)


app.listen(port, () => {
    console.log(`app listening on port ${port}`)
})